import request from '@/utils/request';

// 获取流程控制按钮方法
export function getElementButton(taskid) {
  const data = {
    taskid: taskid
  };
  return request({
    url: '/api/task/getElementButton',
    method: 'get',
    params: data
  });
}

// 获取流程审批轨迹
export function getApprovalTracks(process_ints_id) {
  const data = {
    process_ints_id: process_ints_id
  };
  return request({
    url: '/api/task/getApprovalTracks',
    method: 'post',
    data: data
  });
}
export function getUserTaskTrack(process_ints_id) {
  const data = {
    process_ints_id: process_ints_id
  };
  return request({
    url: '/api/task/getUserTaskTrack',
    method: 'post',
    data: data
  });
}
// 表单保存方法
export function saveFormDataJson(id, mapJson, dataJson) {
  const data = {
    id,
    mapJson,
    dataJson
  };
  return request({
    url: '/api/formData/saveFormDataValue',
    method: 'post',
    data: data
  });
}
